<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 43 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts43p0{position:absolute;left:106px;top:97px;}
 .ts43p1{position:absolute;left:352px;top:97px;}
 .ts43p3{position:absolute;left:672px;top:97px;}
 .ts43p7{position:absolute;left:106px;top:113px;}
 .ts43p8{position:absolute;left:706px;top:1026px;}
 .ts43p9{position:absolute;left:331px;top:1044px;}
 .ts43p13{position:absolute;left:106px;top:146px;}
 .ts43p14{position:absolute;left:106px;top:164px;}
 .ts43p15{position:absolute;left:106px;top:183px;}
 .ts43p16{position:absolute;left:106px;top:201px;}
 .ts43p18{position:absolute;left:106px;top:220px;}
 .ts43p19{position:absolute;left:106px;top:238px;}
 .ts43p20{position:absolute;left:106px;top:256px;}
 .ts43p22{position:absolute;left:106px;top:275px;}
 .ts43p23{position:absolute;left:106px;top:293px;}
 .ts43p24{position:absolute;left:106px;top:312px;}
 .ts43p26{position:absolute;left:106px;top:330px;}
 .ts43p28{position:absolute;left:106px;top:348px;}
 .ts43p29{position:absolute;left:106px;top:367px;}
 .ts43p31{position:absolute;left:106px;top:404px;}
 .ts43p32{position:absolute;left:106px;top:422px;}
 .ts43p34{position:absolute;left:106px;top:440px;}
 .ts43p35{position:absolute;left:106px;top:459px;}
 .ts43p36{position:absolute;left:106px;top:477px;}
 .ts43p40{position:absolute;left:106px;top:496px;}
 .ts43p41{position:absolute;left:106px;top:514px;}
 .ts43p42{position:absolute;left:106px;top:532px;}
 .ts43p44{position:absolute;left:106px;top:551px;}
 .ts43p45{position:absolute;left:106px;top:569px;}
 .ts43p47{position:absolute;left:106px;top:588px;}
 .ts43p48{position:absolute;left:106px;top:606px;}
 .ts43p50{position:absolute;left:106px;top:624px;}
 .ts43p51{position:absolute;left:106px;top:643px;}
 .ts43p52{position:absolute;left:106px;top:661px;}
 .ts43p54{position:absolute;left:106px;top:680px;}
 .ts43p55{position:absolute;left:106px;top:698px;}
 .ts43p56{position:absolute;left:106px;top:716px;}
 .ts43p58{position:absolute;left:106px;top:735px;}
 .ts43p60{position:absolute;left:106px;top:753px;}
 .ts43p61{position:absolute;left:106px;top:772px;}
 .ts43p62{position:absolute;left:106px;top:790px;}
 .ts43p64{position:absolute;left:106px;top:808px;}
 .ts43p65{position:absolute;left:106px;top:827px;}
 .ts43p66{position:absolute;left:106px;top:845px;}
 .ts43p67{position:absolute;left:106px;top:864px;}
 .ts43p69{position:absolute;left:106px;top:882px;}
 .ts43p70{position:absolute;left:106px;top:900px;}
 .ts43p71{position:absolute;left:106px;top:919px;}
 .ts43p73{position:absolute;left:106px;top:937px;}
 .ts43p74{position:absolute;left:106px;top:956px;}
 .ts43p75{position:absolute;left:106px;top:974px;}
 .ts43p78{position:absolute;left:552px;top:771px;}
 .ts43p80{position:absolute;left:552px;top:783px;}
 .ts43p81{position:absolute;left:552px;top:795px;}
 .ts43p82{position:absolute;left:552px;top:807px;}

 /* Font Styles */
 .ft0p43{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p43{font-weight:normal;}
 .ft2p43{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p43{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p43{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p43{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p43{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft7p43{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#FFFFFF;}
 .ft8p43{font-style:normal;font-weight:normal;font-size:11px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground43{position:absolute;left:105px;top:771px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index42.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;43 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index44.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground43><img src="./background43.png" width="633" height="284" border="0" alt=""></div>
<div class=ts43p0><span class="ft0p43"> </span></div>
<div class=ts43p1><span class="ft0p43">Gravitybox Schedule Primer<span class="ft1p43"> </span></span></div>
<div class=ts43p3><span class="ft0p43">Page 41&nbsp; </span></div>
<div class=ts43p7><span class="ft2p43"> </span></div>
<div class=ts43p8><span class="ft3p43"> </span></div>
<div class=ts43p9><span class="ft4p43">1998&#45;2004 Gravitybox Software LLC<span class="ft3p43"> </span></span></div>
<div class=ts43p13><span class="ft5p43"> </span></div>
<div class=ts43p14><span class="ft5p43">The AfterAdd event is raised after an item has been added to the ScheduleItems </span></div>
<div class=ts43p15><span class="ft5p43">collection. The event will have the new appointment&#146;s index as its parameter. You may </span></div>
<div class=ts43p16><span class="ft5p43">display your custom dialog box by using this event if it is more appropriate. Make sure </span></div>
<div class=ts43p18><span class="ft5p43">that the AllowAddDialog property to false. This will ensure that the default dialog is not </span></div>
<div class=ts43p19><span class="ft5p43">displayed at all. The AfterAdd event has the index of the newly added ScheduleItem. So </span></div>
<div class=ts43p20><span class="ft5p43">you may create a custom property box and use it to modify the properties of the object </span></div>
<div class=ts43p22><span class="ft5p43">specified by the index parameter. The BeforeEdit and AfterEdit events will be raised as </span></div>
<div class=ts43p23><span class="ft5p43">well, if the default property box is used. The reason the edit events are called is that </span></div>
<div class=ts43p24><span class="ft5p43">after the Add, the operation is a normal edit. So the default behavior for adding an </span></div>
<div class=ts43p26><span class="ft5p43">appointment is BeforeAdd, AfterAdd, BeforeEdit, and AfterEdit. </span></div>
<div class=ts43p28><span class="ft5p43"> </span></div>
<div class=ts43p29><span class="ft6p43">Moving </span></div>
<div class=ts43p31><span class="ft5p43">A move is defined as changing the StartTime, Date, or Room property of a </span></div>
<div class=ts43p32><span class="ft5p43">ScheduleItem, by dragging it, with the mouse. After an appointment is created, the user </span></div>
<div class=ts43p34><span class="ft5p43">may move the appointment to any other part of the schedule (except NoDrop zones), </span></div>
<div class=ts43p35><span class="ft5p43">with the mouse. This assumes the schedule property AllowMove is set to true, since no </span></div>
<div class=ts43p36><span class="ft5p43">user&#45;initiated moves may occur if this property is false. Also the appointment&#146;s </span></div>
<div class=ts43p40><span class="ft5p43">ReadOnly property may not be true, since moving it would change its position. This </span></div>
<div class=ts43p41><span class="ft5p43">section does not refer to the action taken when using the property box or setting an </span></div>
<div class=ts43p42><span class="ft5p43">appointment&#146;s properties in code. These actions are considered edits. When using a </span></div>
<div class=ts43p44><span class="ft5p43">property box, the events BeforeEdit and AfterEdit are raised. The following refers to the </span></div>
<div class=ts43p45><span class="ft5p43">event sequence when dragging an appointment, with the mouse. </span></div>
<div class=ts43p47><span class="ft5p43"> </span></div>
<div class=ts43p48><span class="ft5p43">During a move, there are a number of events that come into play. The first event that is </span></div>
<div class=ts43p50><span class="ft5p43">raised is the BeforeDrag event. This occurs to inform you that the user is dragging an </span></div>
<div class=ts43p51><span class="ft5p43">appointment. A Cancel parameter is provided so that the operation may be canceled if </span></div>
<div class=ts43p52><span class="ft5p43">necessary. There is also a drop operation parameter that will inform you as to whether </span></div>
<div class=ts43p54><span class="ft5p43">the operation is a copy or a move. The DragOverScheduleItem event is raised every </span></div>
<div class=ts43p55><span class="ft5p43">time the mouse moves while dragging an appointment. The DragDropScheduleItem </span></div>
<div class=ts43p56><span class="ft5p43">event is finally raised to inform that something was dropped on the schedule (perhaps </span></div>
<div class=ts43p58><span class="ft5p43">not even an appointment). </span></div>
<div class=ts43p60><span class="ft5p43"> </span></div>
<div class=ts43p61><span class="ft5p43">The next event in sequence is the BeforeMove event. This </span></div>
<div class=ts43p62><span class="ft5p43">event is raised so that any code that needs to be executed, </span></div>
<div class=ts43p64><span class="ft5p43">before a move, is performed. An interesting parameter in </span></div>
<div class=ts43p65><span class="ft5p43">the BeforeMove event is DoPrompt. This is a Boolean value that determines whether </span></div>
<div class=ts43p66><span class="ft5p43">the user will be prompted for a move confirmation. The default value is true, but this </span></div>
<div class=ts43p67><span class="ft5p43">property may be set to false and the appointment will be moved, with no questions </span></div>
<div class=ts43p69><span class="ft5p43">asked. Also the schedule property ConflictWarn allows for the determination of whether </span></div>
<div class=ts43p70><span class="ft5p43">the user is to be prompted about conflicts. When moving an appointment, there is the </span></div>
<div class=ts43p71><span class="ft5p43">possibility that a conflict may occur. If a conflict does occur because of this move and </span></div>
<div class=ts43p73><span class="ft5p43">ConflictWarn is true, the user is prompted by a confirmation dialog to ensure that a </span></div>
<div class=ts43p74><span class="ft5p43">conflict is indeed wanted at this position. If ConflictWarn is false then the appointment </span></div>
<div class=ts43p75><span class="ft5p43">will be moved and a conflict will occur, with no warning to the user. </span></div>
<div class=ts43p78><span class="ft7p43">Quick Tip </span></div>
<div class=ts43p80><span class="ft8p43">To turn off the move prompt, set the </span></div>
<div class=ts43p81><span class="ft8p43">&#147;DoPrompt&#148; parameter in the </span></div>
<div class=ts43p82><span class="ft8p43">BeforeMove event to False. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
